const  http = require("http");
const  url = require("url");
const  qs =require("querystring");

http.createServer(((req, res) => {
    let body ='';
    req.on("data",chunk => {
        console.log("->"+chunk);
        body+=chunk;
    });

    req.on("end",()=>{
        console.log("-->")
        //将使用POST方法提交的参数提炼出来
        console.log(qs.parse(body));
        res.end("hello node")
    })

})).listen(80);